/*
 * IllegalViewException.cpp
 *
 *  Created on: Nov 6, 2008
 *      Author: tfannes
 */

#include "IllegalViewException.h"
#include <iostream>

namespace error
{
	IllegalViewException::IllegalViewException(const QString & message)
	: Exception(message)
	{
		std::cout << message.toAscii().data() << std::endl;
	}

	IllegalViewException::~IllegalViewException()
	{
	}

	IllegalViewException * IllegalViewException::CreateInvalidFileException(const QString & filename)
	{
		if(filename != "")
			return new IllegalViewException("Illegal View: The file \'"+ filename +"\' is invalid");
		else
			return new IllegalViewException("Illegal View: The filed is invalid");
	}
}
